﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Hero
    {
        private string heroName;
        private string heroInfo;
        private string nickName;
        private int attack;
        private int defense;
        private int speed;
        private string skill
        public Hero(string heroName, string heroInfo, string nickName, int attack, int defense, int speed，string skill)
        {
            this.heroName = heroName;
            this.heroInfo = heroInfo;
            this.nickName = nickName;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
            this.skill = skill;
                
        }

        public void Skill()
        {
            Console.WriteLine("角色名称"+this.heroName);
            Console.WriteLine("角色介绍" + this.heroInfo);
            Console.WriteLine("昵称" + this.nickName);
            Console.WriteLine("攻击力" + this.attack);
            Console.WriteLine("防御力" + this.defense);
            Console.WriteLine("速度" + this.speed);
            Console.WriteLine("技能" + this.skill);
        }
    }
}
